package com.nation.serviceImpl;

import com.nation.dao.NatureDao;
import com.nation.domain.TNatureAndResource;
import com.nation.service.NatureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by dqd on 2017/11/3.
 */
@Service
public class NatureServiceImpl implements NatureService{
    @Autowired
    NatureDao NatureDao;
    @Override
    public List<TNatureAndResource> findAllNature() {
        return NatureDao.findAllNature();
    }

    @Override
    public TNatureAndResource findByCountryCode(String country_code) {
        return NatureDao.findByCountryCode(country_code);
    }

    @Override
    public Boolean updateNature(TNatureAndResource TNatureAndResource) {
        return NatureDao.updateNature(TNatureAndResource);
    }

    @Override
    public List<TNatureAndResource> findNatureLimit(Map<String, Object> map) {
        return NatureDao.findNatureByLimit(map);
    }

    @Override
    public Boolean insert(TNatureAndResource TNatureAndResource) {
        return NatureDao.insert(TNatureAndResource);
    }

    @Override
    public List<TNatureAndResource> findByCondition(Map<String, Object> map) {
        return NatureDao.findByCondition(map);
    }

    @Override
    public Boolean delete(String pk) {
        return NatureDao.delete(pk);
    }
}
